package com.medicine.prm.entity.patient;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * tbspatient实体 患者
 * Tbspatient entity.
 * @author 杨文
 * @date 2020-11-13 14:31
 */
@Entity
@Data
@TableName("tbspatient")
public class Tbspatient implements Serializable {

	private static final long serialVersionUID = 1L;
	@TableId(value = "spid", type = IdType.UUID)
	/*
	* 主键
	*/
	private String spid;
	
	/*
	* 会员主键
	*/
	private String smemberid;
	/*
	* 患者姓名
	*/
	private String sname;
	/*
	* 手机号码
	*/
	private String smobile;
	/*
	* 患者出生年月
	*/
	private java.util.Date dbirth;
	/*
	* 患者性别  1=男2=女
	*/
	private Integer isex;
	/*
	* 创建时间
	*/
	private java.util.Date dcratetime;
	/*
	* 状态1=启用2=禁用
	*/
	private Integer istatus;
	/*
	* 是否删除
	*/
	private Integer isdelete;
	/*
	* 修改时间
	*/
	private java.util.Date dupdatetime;


	private String scard;//身份证号
	private String siptotpno;//门诊号
	private String smdtrtcertno;//就诊卡号
	private Integer isource;//来源来源1=PC2=小程序
	private Integer icalltype;//关系 0=未知1=爸爸2=妈妈3=儿子4=女儿5=朋友6=其他
	private String sticket;//二维码
	private Integer ishow;//是否显示小程序1=已绑定2=未绑定
	private Integer isdefault;//是否默认1=是2=否

	private String shospitalid;//医院ID
	
	/*@Id
	@GenericGenerator(name="idGenerator", strategy="uuid")
 	@GeneratedValue(generator="idGenerator")
 	@Column(name = "spid" , unique = true, nullable = false , length=64 )
	public String getSpid(){
		 return this.spid;
	}
 
	public void setSpid(String spid){
		 this.spid=spid;
	}
 
		@Column(name = "smemberid" , length=64 )
	public String getSmemberid(){
		 return this.smemberid;
	}
 
	public void setSmemberid(String smemberid){
		 this.smemberid=smemberid;
	}
 
		@Column(name = "sname" , length=20 )
	public String getSname(){
		 return this.sname;
	}
 
	public void setSname(String sname){
		 this.sname=sname;
	}
 
		@Column(name = "smobile" , length=15 )
	public String getSmobile(){
		 return this.smobile;
	}
 
	public void setSmobile(String smobile){
		 this.smobile=smobile;
	}
 
		@Temporal(TemporalType.DATE)
 	@Column(name = "dbirth" , length=10)
	public java.util.Date getDbirth(){
		 return this.dbirth;
	}
 
	public void setDbirth(java.util.Date dbirth){
		 this.dbirth=dbirth;
	}
 
		@Column(name = "isex" , length=10 )
	public Integer getIsex(){
		 return this.isex;
	}
 
	public void setIsex(Integer isex){
		 this.isex=isex;
	}
 
		@Temporal(TemporalType.TIMESTAMP)
 	@Column(name = "dcratetime" , length=19)
	public java.util.Date getDcratetime(){
		 return this.dcratetime;
	}
 
	public void setDcratetime(java.util.Date dcratetime){
		 this.dcratetime=dcratetime;
	}
 
		@Column(name = "istatus" , length=10 )
	public Integer getIstatus(){
		 return this.istatus;
	}
 
	public void setIstatus(Integer istatus){
		 this.istatus=istatus;
	}
 
		@Column(name = "isdelete" , length=10 )
	public Integer getIsdelete(){
		 return this.isdelete;
	}
 
	public void setIsdelete(Integer isdelete){
		 this.isdelete=isdelete;
	}
 
		@Temporal(TemporalType.TIMESTAMP)
 	@Column(name = "dupdatetime" , length=19)
	public java.util.Date getDupdatetime(){
		 return this.dupdatetime;
	}
 
	public void setDupdatetime(java.util.Date dupdatetime){
		 this.dupdatetime=dupdatetime;
	}


	@Column(name = "scard" , length=30 )
	public String getScard() {
		return scard;
	}

	public void setScard(String scard) {
		this.scard = scard;
	}

	@Column(name = "siptotpno" , length=30 )
	public String getSiptotpno() {
		return siptotpno;
	}

	public void setSiptotpno(String siptotpno) {
		this.siptotpno = siptotpno;
	}

	@Column(name = "smdtrtcertno" , length=30 )
	public String getSmdtrtcertno() {
		return smdtrtcertno;
	}

	public void setSmdtrtcertno(String smdtrtcertno) {
		this.smdtrtcertno = smdtrtcertno;
	}

	@Column(name = "isource" , length=10 )
	public Integer getIsource() {
		return isource;
	}

	public void setIsource(Integer isource) {
		this.isource = isource;
	}

	@Column(name = "icalltype" , length=10 )
	public Integer getIcalltype() {
		return icalltype;
	}


	public void setIcalltype(Integer icalltype) {
		this.icalltype = icalltype;
	}

	@Column(name = "sticket" , length=255 )
	public String getSticket() {
		return sticket;
	}

	public void setSticket(String sticket) {
		this.sticket = sticket;
	}

	@Column(name = "ishow" , length=10 )
	public Integer getIshow() {
		return ishow;
	}

	public void setIshow(Integer ishow) {
		this.ishow = ishow;
	}

	@Column(name = "isdefault" , length=10 )
	public Integer getIsdefault() {
		return isdefault;
	}

	public void setIsdefault(Integer isdefault) {
		this.isdefault = isdefault;
	}

	@Transient
	public String getShospitalid() {
		return shospitalid;
	}

	public void setShospitalid(String shospitalid) {
		this.shospitalid = shospitalid;
	}*/
}
